package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.BindTeachplanMediaDto;
import com.xuecheng.content.model.dto.SaveTeachplanDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import com.xuecheng.content.model.po.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2023-02-11
 */
public interface TeachplanService extends IService<Teachplan> {

    /**
     * 根据课程id查询课程计划
     * @param courseId
     * @return
     */
    List<TeachplanDto> getTeachPlan(Long courseId);

    /**
     * 新增/修改章节
     * @param teachplan
     */
    void saveTeachplan(SaveTeachplanDto teachplan);

    /**
     * 删除章节
     * @param teachplanId
     */
    void deleteTeachplan(Long teachplanId);

    /**
     * 章节下移
     * @param teachplanId
     */
    void moveDown(long teachplanId);

    /**
     * 章节上移
     * @param teachplanId
     */
    void moveUp(long teachplanId);

    /**
     * 章节绑定媒资
     * @param bindTeachplanMediaDto
     */
    void binidTeachplanMedia(BindTeachplanMediaDto bindTeachplanMediaDto);
}
